package game.web.dao.dto;

import game.web.base.Constants;

public final class WithdrawDTO extends BaseDTO{

	private String id = "";
	private String userid = "";
	private int orderstatus = 0;
	private String bankinfo = "";
	private double money = 0.00;
	private String content = "";
	private String orderstatusstr = "";

	public String getOrderstatusstr() {
		return orderstatusstr;
	}

	public void setOrderstatusstr(String orderstatusstr) {
		this.orderstatusstr = orderstatusstr;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUserid() {
		return userid;
	}

	public void setUserid(String userid) {
		this.userid = userid;
	}

	public double getMoney() {
		return money;
	}

	public void setMoney(double money) {
		this.money = money;
	}

	public String getBankinfo() {
		return bankinfo;
	}

	public void setBankinfo(String bankinfo) {
		this.bankinfo = bankinfo;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public int getOrderstatus() {
		return orderstatus;
	}

	public void setOrderstatus(int orderstatus) {
		//1=成功，2=失败，3=处理中
		if(orderstatus==1)
			this.setOrderstatusstr(Constants.SUCCESS_NAME);
		else if(orderstatus==2||orderstatus==0)
			this.setOrderstatusstr(Constants.FAILURE_NAME);
		else if(orderstatus==3)
			this.setOrderstatusstr(Constants.PROCESS_NAME);
		else
			this.setOrderstatusstr(Constants.UNKNOW_NAME);
		
		this.orderstatus = orderstatus;
	}

}
